﻿@{
    ViewBag.Title = "JoinGame";
}

    <h2>Title tengja við módel</h2>


<button id="create-game-button">Búa til leik</button>

 <script>
        $(document).ready(function () {
            var id = 1;
            $("#create-game-button").click(function () {
                window.open('/Game/OlsenOlsen/' + id);
                if (id != id + 1)
                {
                    id++
                }
            });
        });
</script>


<div class="main-table">
    <table id="table">
        <tbody>
            <tr>
                <td class="table-id">id</td>
                <td class="user" id="player1"><a href="/Game/OlsenOlsen/1">player</a></td>
                <td class="user" id="player2"><a href="/Game/OlsenOlsen/1">player</a></td>
                <td class="user" id="player3"><a href="/Game/OlsenOlsen/1">player</a></td>
                <td class="user" id="player4"><a href="/Game/OlsenOlsen/1">player</a></td>
           </tr>
        </tbody>
    </table>
</div>

<div class="table-highscore">

</div>
